REPLICATION PACKAGE FOR: Peterson and Swartz, "Boys, girls, and children:  Gender and question-wording in the measurement of authoritarianism"

Replication constructed using R 4.4.0 and run Auguest 14, 20204.
Packages:
readr (version 2.1.5)
ggplot2 (version 3.5.1)
Rmisc (version 1.5.1)
DescTools (version 0.99.54)
cowplot (version 1.1.3)
interactions (version 1.2.0)
lavaan (version 0.6-18)
semTools (version 0.5-6)
tidyverse (version 2.0.0)
mirt (version 1.41)
irtoys (version 0.2.2)
ltm (version 1.2-0)
emmeans (version 1.10.3)
lsr (version 0.5.2)

Contents: 

##data files for the four survey experimennts:
study1.csv
study2.csv
study3.csv
study4.csv

##R scripts necessary to produce all of the analyses and figures.  
The files need to be run in order

1) data_cleaning_1.R
2) ANOVA_1.R
3) data_cleaning_2.R
4) ANOVA_2.R
5) data_cleaning_3.R
6) ANOVA_3.R
7) Cohen-MM.R
8) Figure 7.R
9) Figure 8.R
10) CFA_1.R
11) MIRT_1.R
12) CFA_2.R
13) MIRT_2.R
14) CFA_3.R
15) MIRT_3.R
16) effect size 1.R
17) effect size 2.R
18) effect size 3.R
19) Study 4.R

## log of all code
Peterson_Swartz.log

#log of results necessary for the table
Table1.log
Table2.log
Table3.log
Table4.log
Table5.log
Table6.log
Table7.log

## Figures:
Figure1.pdf
Figure2.pdf
Figure3a.pdf
Figure3b.pdf
Figure4.pdf
Figure5.pdf
Figure6.pdf
Figure7.pdf
Figure8.pdf
Figure9.pdf
Figure10.pdf


#The results of the mini-meta analyses (Table 1) are conducted using excel macros created by Goh
# (https://osf.io/6tfh5/)
# The calculation of Cohen's D is the in R script Cohen-MM.R
# The results are located on the tab names "Meta-analysis d"
mini-meta_wb.xlsx
mini-meta_gm.xlsx
mini-meta_oben.xlsx
mini-meta_respect.xlsx
mini-meta_auth.xlsx


